declare @ngaysinh datetime
set @ngaysinh =  '2/26/1999'
declare @namht int 
set @namht = DATEPART (yy,GETDATE())
declare @namsinh int 
set @namsinh = DATEPART (yy, @ngaysinh)
declare @tuoi int
set @tuoi = @namht - @namsinh 
print 'Tuoi nhan vien la: ' + convert (varchar(5), @tuoi)

-- repair ---